Skip to content

Clarify if-let shadowing and let-chain behavior#4622

Open
ParthSinghPS wants to merge 3 commits intorust-lang:mainfrom
ParthSinghPS:fix-age-variable-shadowing
Open

Clarify if-let shadowing and let-chain behavior#4622
ParthSinghPS wants to merge 3 commits intorust-lang:mainfrom
ParthSinghPS:fix-age-variable-shadowing

Conversation

@ParthSinghPS
Copy link

What this PR does:

  • Updates explanation of variable shadowing in if-let
  • Adds clarification about let-chains in modern Rust

Why:

  • The Rust Book explanation is outdated for newer compilers
  • Prevents confusion for readers using current Rust

Notes:

  • No behavior change, documentation-only update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant